package com.CST.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class EtlAccvouch {
//    private Long id;
//    private String operDtime;       // 收费时间
//    private String accountCode;     // 会计科目编号
//    private String accountName;     // 会计科目名称
//    private String deptCode;        // 用友科室编码
//    private String deptName;        // 用友科室名称
//    private Long mc;                // 贷方金额
//    private Long md;                // 借方金额
//    private String description;     // 摘要
//    private String yard;             // 院区
//    private String etlTime;         // 抽取时间
//    private String type;            // 收入类型 1门诊 2住院 3非HIS
    private Long id;
    @ApiModelProperty(value = "年")
    private String year;

    @ApiModelProperty(value = "月")
    private String month;

    @ApiModelProperty(value = "收费时间")
    private LocalDateTime operDtime;

    @ApiModelProperty(value = "会计科目编号")
    private String accountCode;

    @ApiModelProperty(value = "会计科目名称")
    private String accountName;

    @ApiModelProperty(value = "用友科室编码")
    private String deptCode;

    @ApiModelProperty(value = "用友科室名称")
    private String deptName;

    @ApiModelProperty(value = "贷方金额")
    private Double mc;

    @ApiModelProperty(value = "贷方金额")
    private Double md;

    @ApiModelProperty(value = "摘要")
    private String description;

    @ApiModelProperty(value = "院区")
    private String yard;

    @ApiModelProperty(value = "抽取时间")
    private LocalDateTime etlTime;

    @ApiModelProperty(value = "类型,用于成本收入数据过滤")
    private String type;
    @ApiModelProperty(value = "时间")
    private String period;

    @TableField(exist = false)
    private String tableName;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String startTime;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime;

    @ApiModelProperty(value = "支持多部门查询")
    @TableField(exist = false)
    private List<String> lstDept;
}
